package com.gjp.controller;

import com.gjp.entity.model.UserModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 郭金鹏 on 2018/3/24.
 */
@RestController
public class IndexController {

    @PostMapping("/save")
    public String save(UserModel userModel){
        userModel.getUsers().forEach((user)->{
            System.out.println(user.toString());
        });
        return "ok";
    }
}
